package com.mocha.design;

public class StragetyFactory {
    public static CommonStretegy getStretegy(StrategyEnum strategyEnum) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        return (CommonStretegy)Class.forName(strategyEnum.getClassName()).newInstance();
    }
}
